package top.healthylife.gateway.platform.geo.dto.a4.res;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.platform.geo.dto.CodeExplain;

/**
 * @author : GaoZeXi
 * @date 2021/3/10 16:21
 */
@Data
@Accessors(chain = true)
@ApiModel("错误List")
public class Ec {
    @ApiField(value = "返回的code码")
    @ApiModelProperty(name = "返回的code码", example = "")
    private String code;

    @ApiField(value = "返回的code码解释说明")
    @ApiModelProperty(name = "返回的code码的解释说明", example = "")
    private String codeExplain;

    @ApiField(value = "接口类型")
    @ApiModelProperty(name = "接口类型", example = "B7")
    String ift;

    public String getCodeExplain(){
       return CodeExplain.eclMap.get(this.code);
    }
}
